<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div class="row">
        <div class="col-md-2">
            <div id="schoolClassTree1" class="ztree">

            </div>
        </div>

        <div class="col-md-10">

    <div v-show="showList">

        <div class="grid-btn">
            <!--<div class="form-group col-sm-2">-->
                <!--<select v-model="learnTypeSelectd" class="form-control">-->
                    <!--<option value="0" selected="selected">请选择学生类型</option>-->
                    <!--<option v-for="(item,index) in learnType"  :value="item.id">{{ item.name }}</option>-->
                <!--</select>-->
            <!--</div>-->
            <!--<div class="form-group col-sm-2">-->
                <!--<input type="text" class="form-control" v-model="searching" @keyup.enter="query" placeholder="学生姓名/手机号">-->
            <!--</div>-->

            <!--<a class="btn btn-default" @click="query">查询</a>-->
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">用户Id</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.userId" placeholder="用户Id"/>-->
                        <!--</div>-->
                    <!--</div>-->
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学生姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.name" placeholder="学生姓名"/>
                        </div>
                    </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">手机号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="student.phone" placeholder=""/>
                </div>
            </div>
					 <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">身份证</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.idCord" placeholder="身份证"/>-->
                        <!--</div>-->
                    <!--</div>-->
					<!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">学号-学校的</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.schoolCard" placeholder="学号-学校的"/>-->
                        <!--</div>-->
                    <!--</div>-->
					<div class="form-group">
                        <div class="col-sm-2 control-label">学校：</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.schoolId"  style="display:none"/>
                            <input type="text" class="form-control" style="cursor:pointer;" v-model="student.schoolName" @click="deptTree" readonly="readonly" placeholder="请选择学校"/>
                        </div>
                    </div>
                   <div class="form-group">
                        <div class="col-sm-2 control-label">班级：</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.schoolClassId"  style="display:none"/>
                            <input type="text" class="form-control" style="cursor:pointer;" v-model="student.schoolClassName" @click="deptTree1" readonly="readonly" placeholder="请选择学校"/>

                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">学生类型</div>
                        <div class="col-sm-10">
                            <select v-model="student.learnType" class="form-control">
                                <option v-for="(item,index) in learnType"  :value="item.id">{{ item.name }}</option>
                            </select>
                        </div>
                    </div>
					<!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label"></div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.createTime" placeholder=""/>-->
                        <!--</div>-->
                    <!--</div>-->

					<!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">紧急联系人</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.emergencyContact" placeholder="紧急联系人"/>-->
                        <!--</div>-->
                    <!--</div>-->
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">紧急联系电话</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.emergencyPhone" placeholder="紧急联系电话"/>-->
                        <!--</div>-->
                    <!--</div>-->
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label"></div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="student.learnClassId" placeholder=""/>-->
                        <!--</div>-->
                    <!--</div>-->
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

    </div>



<!-- 选择学校 -->
<div id="deptLayer" style="display: none;padding:10px;">
    <ul id="schoolTree" class="ztree"></ul>
</div>


<!-- 选择班级 -->
<div id="deptLayerClass" style="display: none;padding:10px;">
    <ul id="schoolClassTree" class="ztree"></ul>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/student/student.js?_${.now?long}"></script>
</body>
</html>